﻿using Fuse8.DomainFramework.Domain;
using Fuse8.ContentManagementFramework.Domain.Commands.CommandParameters;

namespace Fuse8.ContentManagementFramework.Domain.Commands.CmsUser
{
    public abstract class CmsUserGetByUserGroupCommand : BaseEntityParameterCommand<Domain.CmsUser, CmsUserGetByUserGroupCommandParameter>
    {
        public override string CacheKey
        {
            get
            {
                return string.Format("SiteGroup_{0};Site_{1};UserGroup_{2}",
                    CommandParameter.SiteGroupId.GetValueOrDefault(0),
                    CommandParameter.SiteId.GetValueOrDefault(0),
                    CommandParameter.UserGroupId);
            }
        }

        public override string CommandName
        {
            get
            {
                return "CmsUserGetByUserGroupCommand";
            }
        }
    }
}
